package cn.edu.xmu.datamining.tangzk.mralgos.secondarysort;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Partitioner;

public class SecondarySortPartitioner extends Partitioner<KeyPair, Text> {

	@Override
	public int getPartition(KeyPair key, Text value, int numPartitions) {
		return key.getId1() % numPartitions;
	}

}
